package com.xc.pattern.proxy;

/**
 * @author xingchen
 * @description 代理对象，增强了功能
 * @create 2022-09-04 18:51
 */
public class DigitalSellProxy implements DigitalSell {

    private DigitalSell realObj = new DigitalSellReal();

    @Override
    public void sell() {
        makeAddress();
        makeAD();
        realObj.sell();
    }

    private void makeAddress() {
        System.out.println("一个人流量高的地址");
    }

    private void makeAD() {
        System.out.println("投放广告");
    }
}
